const isDebug = process.env.FAVOR||false;
require('child_process').spawn(getPluginPath()+"\\EyFramework.SocketServer.exe",['/SILENT'])
//启动Websocket插件
function getPluginPath() {
    if (isDebug) {
        return "./plugins/SocketServer"
    } else {
        return process.resourcesPath + "\\plugins\\SocketServer"
    }
}
console.log("SocketServer plugin init success")